<!DOCTYPE html>
<html>
<head>
	<title></title>
	<meta charset="utf-8">
</head>
<body ng-app="myApp", ng-controller="myCtrl">
<div>
	test floavor
</div>
<script src="http://cdn.bootcss.com/angular.js/1.6.6/angular.js"></script>
<script type="text/javascript">
var app =angular.module("myApp", [])
app.controller("myCtrl", function($scope){
	$scope.logchore=function(){
		alert("ok")
	}
})
app.directive("test", function(){
	return {
		'restrict':"&",
		scope:{
			flavor:"&"
		}
	}
})
</script>
</body>
</html>